/** API 接口请求
 *  @version 1.0.0
 *  @author win
 */

const {
  _get,
  _post,
} = require("./request.js");



/* =============== GET  ================= */



/* =============== POST ================= */

/**
 *  登录授权
 */
const userLogin = (openid) => _post(`/mapi/user/wxlogin`, {
  openid
})

/**
 * 传递code
 */
const sendCode = (code) => _post(`/mapi/user/wxdecode`, {
  code
})

/**
 * 获取用户积分
 */

const getUserintegral = (userid) => _post(`/mapi/user/userintegral`, {
  userid
})

/**
 * 个人中心菜单按钮
 */

const getCenterMenu = () => _post(`/mapi/minconfig/centerMenu`,{

})


export {
  userLogin,
  sendCode,
  getUserintegral,
  getCenterMenu
}